package web.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class FilterDemo2 implements Filter {

	@Override
	public void destroy() {
		System.out.println("Destroy2!!");

	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		System.out.println("HELLO2!");
		chain.doFilter(request, response);
		System.out.println("HAHAHA2");
	}

	@Override
	public void init(FilterConfig arg0) throws ServletException {
		System.out.println("Create2!!");
	}

}
